package com.kindergarten.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NegativeOrZero;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author bruce
 * @since 2022-10-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Pay extends PagePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 教师id
     */
    private String name;

    /**
     * 基本工资
     */
    private Double base;

    /**
     * 加班工资
     */
    private Double overtime;

    /**
     * 交通补
     */
    private Double traffic;

    /**
     * 餐补
     */
    private Double meal;

    /**
     * 节假日补贴
     */
    private Double vacation;

    /**
     * 绩效
     */
    private Double bonus;

    /**
     * 其他
     */
    private Double other;

    /**
     * 发放时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date paymentTime;

    private Integer del=0;


    /**
     * 最小基本工资
     */
    @TableField(exist = false)
    private Double minBase;

    /**
     * 最大基本工资
     */
    @TableField(exist = false)
    private Double maxBase;


    /**
     * 日期查询
     */
    @TableField(exist = false)
    private String minDate;

    /**
     * 教师名字
     */
    @TableField(exist = false)
    private String userName;


}
